package com.zzn.bookManage.service;
import com.zzn.bookManage.pojo.Book;
import com.zzn.bookManage.pojo.ResultEntity;

import java.util.Map;

public interface BookService {
    boolean addBook(Book in);
    boolean updateBook(Book in);
    boolean deleteBook(Book in);
    boolean returnBook(Book in);
    boolean borrowBook(Book in);
    ResultEntity<Book> listBooks(int page, int row);
    ResultEntity<Book> listBorrowBooks(int uid, int page, int row);
    ResultEntity<Book> listBookById(int bid, int page, int row);
    ResultEntity<Book> listBooksByConditions(Map<String, String> conditions, boolean like ,int page,int row);
}